package com.simple.dsrouter.config;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("table")
public class TableConfig {
	/**
	 * 表前缀名
	 */
	@XStreamAsAttribute()
	private String tablePrefix;	
	/**
	 * 分表数
	 */
	@XStreamAsAttribute()
	private int tableNum;
	/**
	 * 分表字段名(对应参数对象中的属性)
	 */
	@XStreamAsAttribute()
	private String tableField;
	/**
	 * 表名(对应参数对象中的属性)
	 */
	@XStreamAsAttribute()
	private String tableName;
	
	public String getTablePrefix() {
		return tablePrefix;
	}
	
	public void setTablePrefix(String tablePrefix) {
		this.tablePrefix = tablePrefix;
	}
	
	public int getTableNum() {
		return tableNum;
	}
	
	public void setTableNum(int tableNum) {
		this.tableNum = tableNum;
	}
	
	public String getTableField() {
		return tableField;
	}
	
	public void setTableField(String tableField) {
		this.tableField = tableField;
	}
	
	public String getTableName() {
		return tableName;
	}
	
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
}
